home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / cagd_lib / cagd_ftl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-30  |  774 b   |  22 lines

  1. /******************************************************************************
  2. * Cagd_ftl.c - default FatalError function for the cagd library.          *
  3. *******************************************************************************
  4. * Written by Gershon Elber, April. 93.                          *
  5. ******************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include "cagd_loc.h"
  9.  
  10. /*****************************************************************************
  11. * Trap Cagd_lib errors right here.                         *
  12. *****************************************************************************/
  13. void CagdFatalError(CagdFatalErrorType ErrID)
  14. {
  15.     char
  16.     *ErrorMsg = CagdDescribeError(ErrID);
  17.  
  18.     fprintf(stderr, "CAGD_LIB: %s\n", ErrorMsg);
  19.  
  20.     exit(-1);
  21. }
  22.